object values to array php

40

php object to array -

//This works best
$array = json_decode(json_encode($object), true);

Comments

Submit
0 Comments